{% extends 'TopxiaWebBundle::layout.html.twig' %}

{% block title %}账户中心 - {{ parent() }}{% endblock %}

{% block content %}
<div class="row">
  <div class="col-md-3">
    {% block side %}
      
      <div class="sidenav">
        <ul class="list-group">
          <li class="list-group-heading">账户中心</li>
          <li class="list-group-item {% if side_nav == 'my-bill' or side_nav == 'my-coin' %} active {% endif %}">
            <a href="
              {% if setting('coin.coin_enabled') %}
                {{path('my_coin')}}
              {% else %}
                {{path('my_bill')}}
              {% endif %}
              ">我的账户
            </a>
          </li>
          <li class="list-group-item {% if side_nav == 'my-orders' %} active {% endif %}">
            <a href="{{path('my_orders')}}">我的订单</a> 
          </li>  

           {# caoqian #}
         <li class="list-group-item {% if side_nav == 'my-cz' %} active {% endif %}">
            <a href="{{path('my_cz')}}">学习卡充值</a> 
          </li>
          <li class="list-group-item {% if side_nav == 'my-card' %} active {% endif %}">
            <a href="{{path('my_card')}}">我的卡包</a> 
          </li>   
         <li class="list-group-item {% if side_nav == 'my-integral' or side_nav == 'my-invitation' %} active {% endif %}">
            <a href="{{path('my_integral')}}">我的积分</a> 
          </li>      
          {# caoqian #}
          {% if is_plugin_installed('Coupon') or is_plugin_installed("MoneyCard") %}
            <li class="list-group-item {% if side_nav == 'my-cards' %} active {% endif %}">
              <a href="{{path('my_cards')}}">我的卡包</a> 
            </li> 
          {% endif %}
          </li>
          {% if is_plugin_installed('Vip')%}
          <li class="list-group-item {% if side_nav == 'my-vip-record' %} active {% endif %}">
            <a href="{{path('vip_history')}}">会员记录</a> 
          </li>
          {% endif %} 
        </ul>
      </div>
    {% endblock %}
  </div>
  <div class="col-md-9">
    {% block main %}{% endblock %}
  </div>
</div>
{% endblock %}